<html>

<head>
  <meta charset="utf-8">
  <title>Hello MUI</title>
  <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-bar-style" content="black">

  <!--标准mui.css-->
  <link rel="stylesheet" href="./css/mui.min.css">
  <link rel="stylesheet" href="./css/app.css">
  <style>
    .mui-row.mui-fullscreen>[class*="mui-col-"] {
      height: 100%;
    }

    .mui-col-xs-3,
    .mui-control-content {
      overflow-y: auto;
      height: 100%;
    }

    .mui-segmented-control .mui-control-item {
      line-height: 50px;
      width: 100%;
    }

    .mui-segmented-control.mui-segmented-control-inverted .mui-control-item.mui-active {
      background-color: #fff;
    }

    .mui-table-view .mui-media-object {
      height: 66px;
      max-width: 66px
    }
  </style>
</head>

<body class="mui-ios mui-ios-9 mui-ios-9-1">
  <header class="mui-bar mui-bar-nav">
    <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
    <h1 class="mui-title"> 货品选择 </h1>
  </header>
  <div class="mui-content mui-row mui-fullscreen">
    <div class="mui-col-xs-2">
      <div id="segmentedControls" class="mui-segmented-control mui-segmented-control-inverted mui-segmented-control-vertical">
        <a class="mui-control-item " href="#content1">男鞋</a>
        <a class="mui-control-item" href="#content2">女鞋</a>
        <a class="mui-control-item" href="#content3">其他</a>
      </div>
    </div>
    <div id="segmentedControlContents" class="mui-col-xs-10" style="border-left: 1px solid #c8c7cc;">
      <div id="content1" class="mui-control-content">
        <ul class="mui-table-view">

          <li class="mui-table-view-cell mui-media">
            <img class="mui-media-object mui-pull-left" height="40" src="./images/cbd.jpg">
            <span class="mui-badge mui-badge-danger warehouse-add">添加</span>
            <div class="mui-media-body">
              <h4 class="title">商品货号s004</h4>
              <p class="mui-ellipsis"> 供应商：
                <span>某某集团</span>
              </p>
              <p class="mui-ellipsis"> 数量：
                <span class="input_nor_line">
                  <input class="input_nor" type="text" value="0"> </span>
                  &nbsp;&nbsp;仓位：<span> 一仓 </span>
              </p>
            </div>
          </li>
          <li class="mui-table-view-cell mui-media">
            <img class="mui-media-object mui-pull-left" height="40" src="./images/cbd.jpg">
            <span class="mui-badge mui-badge-danger warehouse-add">添加</span>
            <div class="mui-media-body">
              <h4 class="title">商品货号s004</h4>
              <p class="mui-ellipsis"> 供应商：
                <span>某某集团</span>
              </p>
              <p class="mui-ellipsis"> 数量：
                <span class="input_nor_line">
                  <input class="input_nor" type="text" value="0"> </span>
                  &nbsp;&nbsp;仓位：<span> 一仓 </span>
              </p>
            </div>
          </li>
    
        </ul>
      </div>
      <div id="content2" class="mui-control-content">
        <ul class="mui-table-view">
          <li class="mui-table-view-cell mui-media">
            <img class="mui-media-object mui-pull-left" height="40" src="./images/cbd.jpg">
            <div class="mui-media-body">
              <h4 class="title">商品货号s004</h4>
              <p class="mui-ellipsis"> 供应商：
                <span>某某集团</span>
              </p>
              <p class="mui-ellipsis"> 数量：
                <span class="input_nor_line">
                  <input class="input_nor" type="text" value="0"> </span>
                  &nbsp;&nbsp;仓位：<span> 一仓 </span>
              </p>
            </div>
          </li>
          <li class="mui-table-view-cell mui-media">
            <img class="mui-media-object mui-pull-left" height="40" src="./images/cbd.jpg">
            <div class="mui-media-body">
              <h4 class="title">商品货号s004</h4>
              <p class="mui-ellipsis"> 供应商：
                <span>某某集团</span>
              </p>
              <p class="mui-ellipsis"> 数量：
                <span class="input_nor_line">
                  <input class="input_nor" type="text" value="0"> </span>
                  &nbsp;&nbsp;仓位：<span> 一仓 </span>
              </p>
            </div>
          </li>
        </ul>
      </div>
      <div id="content3" class="mui-control-content">
        <ul class="mui-table-view">
          <li class="mui-table-view-cell mui-media">
            <img class="mui-media-object mui-pull-left" height="40" src="./images/cbd.jpg">
            <div class="mui-media-body">
              <h4 class="title">商品货号s004</h4>
              <p class="mui-ellipsis"> 供应商：
                <span>某某集团</span>
              </p>
              <p class="mui-ellipsis"> 数量：
                <span class="input_nor_line">
                  <input class="input_nor" type="text" value="0"> </span>
                  &nbsp;&nbsp;仓位：<span> 一仓 </span>
              </p>
            </div>
          </li>
          <li class="mui-table-view-cell mui-media">
            <img class="mui-media-object mui-pull-left" height="40" src="./images/cbd.jpg">
            <div class="mui-media-body">
              <h4 class="title">商品货号s004</h4>
              <p class="mui-ellipsis"> 供应商：
                <span>某某集团</span>
              </p>
              <p class="mui-ellipsis"> 数量：
                <span class="input_nor_line">
                  <input class="input_nor" type="text" value="0"> </span>
                  &nbsp;&nbsp;仓位：<span> 一仓 </span>
              </p>
            </div>
          </li>
          <li class="mui-table-view-cell mui-media">
            <img class="mui-media-object mui-pull-left" height="40" src="./images/cbd.jpg">
            <div class="mui-media-body">
              <h4 class="title">商品货号s004</h4>
              <p class="mui-ellipsis"> 供应商：
                <span>某某集团</span>
              </p>
              <p class="mui-ellipsis"> 数量：
                <span class="input_nor_line">
                  <input class="input_nor" type="text" value="0"> </span>
                  &nbsp;&nbsp;仓位：<span> 一仓 </span>
              </p>
            </div>
          </li>
        </ul>
      </div>

    </div>
  </div>
  <script src="./js/mui.min.js"></script>
  <script>
    mui.init({
      swipeBack: true //启用右滑关闭功能
    });
    var controls = document.getElementById("segmentedControls");
    var contents = document.getElementById("segmentedControlContents");
    /*  var html = [];
     var i = 1,
       j = 1,
       m = 16, //左侧选项卡数量+1
       n = 21; //每个选项卡列表数量+1
     for (; i < m; i++) {
       html.push('<a class="mui-control-item" href="#content' + i + '">选项' + i + '</a>');
     }
     controls.innerHTML = html.join('');
     html = [];
     for (i = 1; i < m; i++) {
       html.push('<div id="content' + i + '" class="mui-control-content"><ul class="mui-table-view">');
       for (j = 1; j < n; j++) {
         html.push('<li class="mui-table-view-cell">第' + i + '个选项卡子项-' + j + '</li>');
       }
       html.push('</ul></div>');
     }
     contents.innerHTML = html.join(''); */
    //默认选中第一个
    controls.querySelector('.mui-control-item').classList.add('mui-active');
    contents.querySelector('.mui-control-content').classList.add('mui-active');
  </script>



</body>

</html>